#ifndef PVID_AUTHORITY_H
#define PVID_AUTHORITY_H

#include <QtCore>
#include <QtSql>

#include <CryptoPP/include/cryptopp/rsa.h>
#include <CryptoPP/include/cryptopp/osrng.h>
#include <CryptoPP/include/cryptopp/files.h>
#include <CryptoPP/include/cryptopp/hex.h>
#include <CryptoPP/include/cryptopp/pssr.h>
#include <CryptoPP/include/cryptopp/hmac.h>

#include <string>
#include <qtopia/QtGui/QMessageBox>

using namespace std;
using namespace CryptoPP;

class PVID_Authority
{
public:
// Variables
    QDir obj_Dir;

// Funciones
    PVID_Authority();
    PVID_Authority(QString Dir);
    ~PVID_Authority();
    QString PVID_generation(QString Data,QString Key);
    bool PVID_verification(QString PVID,QString filter);
    void set_voted(QString PVID);
    bool isVoted(QString PVID);



private:
// Variables


// Funciones
    void create_key();



};

#endif // PVID_AUTORITHY_H
